package com.cn.test1.servlet;

import com.cn.test1.model.FootModel;
import com.cn.test1.service.FootService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@WebServlet("/foot")
public class FootServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

//        FootService footService = new FootService();
//        List<FootModel> footModel = footService.getFootModelList();//咨询信息
//        req.setAttribute("footModel",footModel);
//
//        List<FootModel> footModelInput = footService.getFootModelListInput();//输入框
//        req.setAttribute("footModelInput",footModelInput);
//
//        List<FootModel> footModelMessage = footService.getFootModelMessage();//留言提示信息
//        req.setAttribute("footModelMessage",footModelMessage);
//
//        FootModel footModels = footService.getFootModel();//备案信息
//        req.setAttribute("footModels",footModels);
//
//        List<FootModel> footModelListImg = footService.getFootModelListImg(); //底部图片
//        req.setAttribute("footModelListImg",footModelListImg);
//        req.getRequestDispatcher("/jsp/foot.jsp").forward(req,resp);

    }
}
